package com.piccolo.wrapper.client.component.JSNI;

import com.piccolo.wrapper.client.component.Overlay.PBoundsOverlay;
import com.piccolo.wrapper.client.component.Overlay.PPointOverlay;
import com.piccolo.wrapper.client.component.Overlay.PTransformOverlay;

public class PTransformJSNI 
{
	public native PTransformOverlay create() 
	/*-{ return new $wnd.PTransform(); }-*/;
	
	public native void scale(PTransformOverlay transformation, double d) 
	/*-{ transformation.scale(d); }-*/;
	
	public native void translate(PTransformOverlay transformation, double x, double y) 
	/*-{ transformation.translate(x, y); }-*/;
	
	public native PTransformOverlay getInverse(PTransformOverlay self) 
	/*-{ return self.getInverse(); }-*/;

	public native void rotate(PTransformOverlay self, double theta) 
	/*-{ self.rotate(theta); }-*/;

	public native PBoundsOverlay transform(PTransformOverlay self, PBoundsOverlay target)
	/*-{ return self.transform(target); }-*/;
	
	public native PTransformOverlay transform(PTransformOverlay self, PTransformOverlay target)
	/*-{ return self.transform(target); }-*/;
	
	public native PPointOverlay transform(PTransformOverlay self, PPointOverlay target)
	/*-{ return self.transform(target); }-*/;

	public native double getScale(PTransformOverlay self) 
	/*-{ return self.getScale(); }-*/;

}
